package com.tuanzi.loan.web.lazy.banana;

import com.tuanzi.loan.business.service.banana.LoanBananaBindCardActionService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.banana.LoanBananaBindCardActionRequest;
import com.tuanzi.loan.vo.response.banana.LoanBananaBindCardActionResponse;
import com.tuanzi.loan.web.bean.CurrentUserBean;
import com.tuanzi.loan.web.lazy.LazyDataSessionModel;
import org.springframework.data.domain.Page;

/**
 * @author administrator
 * @createTime 2019-06-13 20:01
 */
public class LoanBananaBindCardActionLazyDataModel extends LazyDataSessionModel<LoanBananaBindCardActionRequest,LoanBananaBindCardActionResponse> {
    private LoanBananaBindCardActionService loanBananaBindCardActionService;
    public LoanBananaBindCardActionLazyDataModel(LoanBananaBindCardActionRequest loanBananaBindCardActionRequest, CurrentUserBean session, LoanBananaBindCardActionService loanBananaBindCardActionService) {
        super(loanBananaBindCardActionRequest, session);
        this.loanBananaBindCardActionService = loanBananaBindCardActionService;
    }

    @Override
    protected Page<LoanBananaBindCardActionResponse> doLoad0(PageSearcher<LoanBananaBindCardActionRequest> pageSearcher) {
        return loanBananaBindCardActionService.list(pageSearcher);
    }
}
